From a5ae2bb063b61c2402154fa63b00ea88dce7cf7b Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Thu, 25 Jan 2007 10:34:17 +0000 Subject: [PATCH] Have the sxp parsing cope when the cpus field is a list, which can happen after a reboot. From Daniele Palumbo . Signed-off-by: Ewan Mellor --- tools/python/xen/xend/XendConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index 07f76c01d9..cdac1b4335 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -572,7 +572,7 @@ class XendConfig(dict): # "0-3,^1" -> [0,2,3] # "0-3,^1,1" -> [0,1,2,3] try: - if 'cpus' in cfg: + if 'cpus' in cfg and type(cfg['cpus']) != list: cpus = [] for c in cfg['cpus'].split(','): if c.find('-') != -1: -- 2.30.2